option 3: Both event triggered and periodic